<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Logowanie</title>
<link rel="stylesheet" type="text/css" href="styles/login.css">
</head>
<body>
<div class ='content'>
<%
String message = (String)session.getAttribute("message");
String message_s = (String)session.getAttribute("message_s");
String message_log = (String)session.getAttribute("message_log");
response.setContentType("text/html");
if(message_log != null) {
	session.invalidate();
	out.println(message_log);
	response.setHeader("Refresh", "3;URL=index.jsp");
}
else if(message_s != null){
	out.println(message_s);
	response.setHeader("Refresh", "3;URL=Panel/Panel.jsp");
}
else if(message != null){
	out.println(message);
	response.setHeader("Refresh", "3;URL=index.jsp");
}
%>
</div>
</body>
</html>